﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.ObjectModel;

namespace PlaylistParitySL
{
    public class MediaPlayer : BaseModel
    {
        /// <summary>
        /// The <see cref="Name" /> property's name.
        /// </summary>
        public const string NamePropertyName = "Name";

        private string _name = string.Empty;

        /// <summary>
        /// Gets the Name property.
        /// TODO Update documentation:
        /// Changes to that property's value raise the PropertyChanged event. 
        /// This property's value is broadcasted by the Messenger's default instance when it changes.
        /// </summary>
        public string Name
        {
            get
            {
                return _name;
            }

            set
            {
                if (_name == value)
                {
                    return;
                }

                var oldValue = _name;
                _name = value;

                // Update bindings, no broadcast
                RaisePropertyChanged("Name");
            }
        }
        /// <summary>
        /// The <see cref="Playlists" /> property's name.
        /// </summary>
        public const string PlaylistsPropertyName = "Playlists";

        private ObservableCollection<Playlist> _playlists = new ObservableCollection<Playlist>();

        /// <summary>
        /// Gets the Playlists property.
        /// TODO Update documentation:
        /// Changes to that property's value raise the PropertyChanged event. 
        /// This property's value is broadcasted by the Messenger's default instance when it changes.
        /// </summary>
        public ObservableCollection<Playlist> Playlists
        {
            get
            {
                return _playlists;
            }

            set
            {
                if (_playlists == value)
                {
                    return;
                }

                var oldValue = _playlists;
                _playlists = value;

                // Update bindings, no broadcast
                RaisePropertyChanged("Playlists");
            }
        }

        public MediaPlayer()
        {

        }
    }
}
